﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 英文版企业信息表
	/// </summary>
	public class DbEnCompInfo
	{ 
		#region DbEnCompInfo
		/// <summary>
		/// 
		/// </summary>
		public DbEnCompInfo()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbEnCompInfo(Int32 cId)
		{
			this.cId = cId;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbEnCompInfo(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["cId"]),out cId);
			this.cCode = Convert.ToString(dr["cCode"]);
			this.cName = Convert.ToString(dr["cName"]);
			this.cNotes = Convert.ToString(dr["cNotes"]);
			this.cKeywords = Convert.ToString(dr["cKeywords"]);
			this.cDescription = Convert.ToString(dr["cDescription"]);
			this.cStatus = Convert.ToInt16(dr["cStatus"]);
			if(dr["cAddTime"] != DBNull.Value)
				this.cAddTime = Convert.ToDateTime(dr["cAddTime"]);
			
		}
		#endregion
		
		
		#region CId
		private Int32 cId;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 CId
		{
			get{ return cId; }
			set{ cId= value; }
		}
		#endregion
		
		#region CCode
		private System.String cCode;
		/// <summary>	 
		/// 企业信息编号
		/// </summary>
		public System.String CCode
		{
			get{ return cCode; }
			set{ cCode= value; }
		}
		#endregion
		
		#region CName
		private System.String cName;
		/// <summary>	 
		/// 企业信息名称
		/// </summary>
		public System.String CName
		{
			get{ return cName; }
			set{ cName= value; }
		}
		#endregion
		
		#region CNotes
		private System.String cNotes;
		/// <summary>	 
		/// 信息内容
		/// </summary>
		public System.String CNotes
		{
			get{ return cNotes; }
			set{ cNotes= value; }
		}
		#endregion
		
		#region CKeywords
		private System.String cKeywords;
		/// <summary>	 
		/// 优化关键词
		/// </summary>
		public System.String CKeywords
		{
			get{ return cKeywords; }
			set{ cKeywords= value; }
		}
		#endregion
		
		#region CDescription
		private System.String cDescription;
		/// <summary>	 
		/// 优化描述
		/// </summary>
		public System.String CDescription
		{
			get{ return cDescription; }
			set{ cDescription= value; }
		}
		#endregion
		
		#region CStatus
		private Int16 cStatus;
		/// <summary>	 
		/// 信息状态
		/// </summary>
		public Int16 CStatus
		{
			get{ return cStatus; }
			set{ cStatus= value; }
		}
		#endregion
		
		#region CAddTime
		private DateTime cAddTime;
		/// <summary>	 
		/// 加入时间
		/// </summary>
		public DateTime CAddTime
		{
			get{ return cAddTime; }
			set{ cAddTime= value; }
		}
		#endregion

	}
}
